<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> 
<jsp:include page="../../userInfoSms.do?operator=updateUserInfo" flush="false"></jsp:include>

<%-- 动态生成div,用来存放要被渲染的自定义组件 --%>
<div id=${param.subMainId}p style="width: 100%; height: 100%"></div>

<script type="text/javascript">
             //获取ajax请求参数subMainId
             var subMainId ='${param.subMainId}';
             
             var user_type = '${sessionScope.userInfo.userType}'; //用户类型
             var check_flag = '${sessionScope.userInfo.checkFlag}'; // 检查标志
             var fee_type = '${sessionScope.userInfo.feetype}'; //扣费标志
             var recv_flag = '${sessionScope.userInfo.recvFlag}'; // 显示上行标志
             var record_flag = '${sessionScope.userInfo.recordFlag}'; // TRUE
///
			var _userId         =  '${sessionScope.userInfo.userId       }';
			var _userName       =  '${sessionScope.userInfo.userName     }';
			var _userType       =  '${sessionScope.userInfo.userType     }';
			var _userTypeStr    =  '${sessionScope.userInfo.userTypeStr  }';
			var _parentId       =  '${sessionScope.userInfo.parentId     }';
			var _sex            =  '${sessionScope.userInfo.sex          }';
			var _sexStr         =  '${sessionScope.userInfo.sexStr       }';
			var _telephone      =  '${sessionScope.userInfo.telephone    }';
			var _cellphone      =  '${sessionScope.userInfo.cellphone    }';
			var _email          =  '${sessionScope.userInfo.email        }';
			var _address        =  '${sessionScope.userInfo.address      }';
			var _status         =  '${sessionScope.userInfo.status       }';
			var _statusStr      =  '${sessionScope.userInfo.statusStr    }';
			var _balance        =  '${sessionScope.userInfo.balance      }';
			var _price          =  '${sessionScope.userInfo.price        }';
			var _smscount       =  '${sessionScope.userInfo.smscount     }';
			var _routeId        =  '${sessionScope.userInfo.routeId      }';
			var _routeIdStr     =  '${sessionScope.userInfo.routeIdStr   }';
			var _checkFlagStr   =  '${sessionScope.userInfo.checkFlagStr }';
			var _checkFlag      =  '${sessionScope.userInfo.checkFlag    }';
			var _feetype        =  '${sessionScope.userInfo.feetype      }';
			var _feetypeStr     =  '${sessionScope.userInfo.feetypeStr   }';
			var _recordFlag     =  '${sessionScope.userInfo.recordFlag   }';
			var _recordFlagStr  =  '${sessionScope.userInfo.recordFlagStr}';
			var _recvFlag       =  '${sessionScope.userInfo.recvFlag     }';
			var _recvFlagStr    =  '${sessionScope.userInfo.recvFlagStr  }';
			var _remark         =  '${sessionScope.userInfo.remark       }';
			var _lastLogin      =  '${sessionScope.userInfo.lastLogin    }';
			var _createDate     =  '${sessionScope.userInfo.createDate   }';
			var _createUserid   =  '${sessionScope.userInfo.createUserid }';
			var _updateDate     =  '${sessionScope.userInfo.updateDate   }';
			var _updateUserid   =  '${sessionScope.userInfo.updateUserid }';
			var _discount       =  '${sessionScope.userInfo.discount     }';
			var _discountFlag   =  '${sessionScope.userInfo.discountFlag}';

			var _createDateStr     =  '${sessionScope.userInfo.createDateStr   }';
			var _lastLoginStr      =  '${sessionScope.userInfo.lastLoginStr    }';
			var _updateDateStr     =  '${sessionScope.userInfo.updateDateStr   }';







             
///         
             // 获取当前活动的tab页的body元素的宽度 (不含任何框架元素)
		     var w = Ext.getCmp('MainTab').getActiveTab().getInnerWidth();
		     // 获取当前活动的tab页的body元素的高度 (不含任何框架元素)
		     var h = Ext.getCmp('MainTab').getActiveTab().getInnerHeight();
			 //实例化人员档案信息登记表单面板
			 var _EditUserInfoSmsFormPanel=new EditUserInfoSmsPanel({
				 myid:subMainId , 
				 cur_user_type	:user_type , 
				 cur_check_flag	:check_flag , 
				 cur_fee_type	:fee_type , 
				 cur_record_flag:record_flag,
				 cur_recv_flag	:recv_flag,
///
				 cur_userId       	:_userId       ,
				 cur_userName     	:_userName     ,
				 cur_userType     	:_userType     ,
				 cur_userTypeStr  	:_userTypeStr  ,
				 cur_parentId     	:_parentId     ,
				 cur_sex          	:_sex          ,
				 cur_sexStr       	:_sexStr       ,
				 cur_telephone    	:_telephone    ,
				 cur_cellphone    	:_cellphone    ,
				 cur_email        	:_email        ,
				 cur_address      	:_address      ,
				 cur_status       	:_status       ,
				 cur_statusStr    	:_statusStr    ,
				 cur_balance      	:_balance      ,
				 cur_price        	:_price        ,
				 cur_smscount     	:_smscount     ,
				 cur_routeId      	:_routeId      ,
				 cur_routeIdStr   	:_routeIdStr   ,
				 cur_checkFlagStr 	:_checkFlagStr ,
				 cur_checkFlag    	:_checkFlag    ,
				 cur_feetype      	:_feetype      ,
				 cur_feetypeStr   	:_feetypeStr   ,
				 cur_recordFlag   	:_recordFlag   ,
				 cur_recordFlagStr	:_recordFlagStr,
				 cur_recvFlag     	:_recvFlag     ,
				 cur_recvFlagStr  	:_recvFlagStr  ,
				 cur_remark       	:_remark       ,
				 cur_lastLogin    	:_lastLogin    ,
				 cur_createDate   	:_createDate   ,
				 cur_createUserid 	:_createUserid ,
				 cur_updateDate   	:_updateDate   ,
				 cur_updateUserid 	:_updateUserid ,
				 cur_discount     	:_discount     ,
				 cur_cellphone    	:_cellphone    ,
				 cur_discountFlag 	:_discountFlag,
				 cur_createDateStr  :_createDateStr   ,
				 cur_lastLoginStr   :_lastLoginStr    ,
				 cur_updateDateStr  :_updateDateStr   
///				 				 
			 });
			 //设置宽度
			 _EditUserInfoSmsFormPanel.width=w;
			 //设置高度
			 _EditUserInfoSmsFormPanel.height=h;
			 //渲染组件
			 _EditUserInfoSmsFormPanel.render(subMainId+'p');			 
</script>
